// -----------------------------
// Author: 		Dhaenens Gert	
// Creation: 	11/6/2014 8:39:00 PM				
// -----------------------------

#include "SineOscillator.h"

SineOscillator::SineOscillator()
	: Oscillator(SoundWaveType::Sine)
{
}

SineOscillator::~SineOscillator()
{
}

Float SineOscillator::Sample(Float t) const
{
	Float s = Amplitude * Math::Sin(Math::PiTimes2 * Frequency * t);

	return s;
}